// 库存管理接口
import request from "@/common/request.js";
const api = {
  production_issue: "/production_issue/",
  production_order: "/production_order/",
  staff: "/staff/",
  production_order_product: "/production_order_product/",
};
const pMaterialApi = {
  get_production_issue(params) {
    return request({
      url: api.production_issue,
      method: "get",
      params,
    });
  },

  production_issue_detail(id) {
    return request({
      url: api.production_issue + id,
      method: "get",
    });
  },

  post_production_issue(data) {
    return request({
      url: api.production_issue,
      method: "post",
      data,
    });
  },

  patch_production_issue(data, id) {
    return request({
      url: api.production_issue + id + "/",
      method: "patch",
      data,
    });
  },

  delete_production_issue(id) {
    return request({
      url: api.production_issue + id + "/",
      method: "delete",
    });
  },

  get_production_order(params) {
    return request({
      url: api.production_order,
      method: "get",
      params,
    });
  },

  get_staff(params) {
    return request({
      url: api.staff,
      method: "get",
      params,
    });
  },

  get_production_order_product(params) {
    return request({
      url: api.production_order_product,
      method: "get",
      params,
    });
  },
};
export default pMaterialApi